import createAxios from './axios'

const PROX_PATH = '/api/public1'

// 1.获取学生总数
export const getStuCount = () => createAxios('get', PROX_PATH + '/getStuCount')

// 2.获取宿管总数
export const getHouCount = () => createAxios('get', PROX_PATH + '/getHouCount')

// 4.管理员/宿管获取某楼栋的学生总数
export const getStuOneBuild = ({ buildId }) => createAxios('get', PROX_PATH + '/getStuOneBuild', { buildId })

// 5.教师获取某个专业学院的学生总数
export const getStuCollege = ({ college, profession }) =>

	createAxios('get', PROX_PATH + '/getStuCollege', { college, profession })
// 6.宿管/学生/教师/管理员获取某楼栋卫生信息条数
export const getHygOneBuild = ({ buildId }) => createAxios('get', PROX_PATH + '/getHygOneBuild', { buildId })

// 7.管理员获取所有楼栋的卫生信息条数
export const getHygAll = () => createAxios('get', PROX_PATH + '/getHygAll')

// 8.管理员获取所有楼栋的公告信息条数 	
export const getNoticeAll = () => createAxios('get', PROX_PATH + '/getNoticeAll')

// 9.宿管/学生/教师/管理员获取某楼栋的公告总数
export const getNoticeOneBuild = ({ buildId }) => createAxios('get', PROX_PATH + '/getNoticeOneBuild', { buildId })

// 10.管理员/宿管/学生获取某一个楼栋公共设施总数
export const getPubOneBuild = ({ buildId }) => createAxios('get', PROX_PATH + '/getPubOneBuild', { buildId })

// 11.管理员获取所有公共设施总数
export const getPublicAll = () => createAxios('get', PROX_PATH + '/getPublicAll')

// 12.管理员/宿管/学生获取某楼栋某一名称的公共设施总数
export const getPublicAllOneBuild = ({ publicName, buildId }) =>
	createAxios('get', PROX_PATH + '/getPublicAllOneBuild', { publicName, buildId })
// 13.管理员获取某名称的所有公共设施总数
export const getPublicAllName = ({ publicName }) => createAxios('get', PROX_PATH + '/getPublicAllName', { publicName })
// 14.宿管/管理员获取某楼栋报修信息总数
export const getRepairOneBuild = ({ buildId }) => createAxios('get', PROX_PATH + '/getRepairOneBuild', { buildId })

// 15.管理员获取所有报修信息总数
export const getRepairAll = () => createAxios('get', PROX_PATH + '/getRepairAll')

// 16.管理员/宿管/教师获取某楼栋假期信息总数
export const getHolOneBuild = ({ buildId }) => createAxios('get', PROX_PATH + '/getHolOneBuild', { buildId })

// 17.管理员获取所有假期信息总数
export const getHolAll = () => createAxios('get', PROX_PATH + '/getHolAll')

// 18.管理员/宿管/教师获取某楼栋在校学生总数
export const getHolOneBuildOn = ({ buildId }) => createAxios('get', PROX_PATH + '/getHolOneBuildOn', { buildId })

// 19.管理员/宿管/教师获取某楼栋离校学生总数
export const getHolOneBuildLeave = ({ buildId }) => createAxios('get', PROX_PATH + '/getHolOneBuildLeave', { buildId })

// 20.管理员获取所有楼栋在校学生总数
export const getHolAllOn = () => createAxios('get', PROX_PATH + '/getHolAllOn')

// 21.管理员获取所有楼栋离校学生总数
export const getHolAllLeave = () => createAxios('get', PROX_PATH + '/getHolAllLeave')

// 22.管理员/宿管获取某楼栋的宿舍总数
export const getBuildInfoOneBuild = ({ buildId }) =>
	createAxios('get', PROX_PATH + '/getBuildInfoOneBuild', { buildId })

// 23.管理员获取所有楼栋的宿舍总数
export const getBuildInfoAll = () => createAxios('get', PROX_PATH + '/getBuildInfoAll')

// 24.管理员获取op表总数
export const getOpInfoAll = () => createAxios('get', PROX_PATH + '/getOpInfoAll')

// 25.宿管获取某楼栋的所有留言总数
export const getMessageInfoBuild = () => createAxios('get', PROX_PATH + '/getMessageInfoBuild')

// 26.宿管获取某楼栋所有换房申请总数
export const getExchangeInfoBuild = () => createAxios('get', PROX_PATH + '/getExchangeInfoBuild')

// 27.宿管获取某楼栋未审核的换房申请总数
export const getExhangeInfoNo = () => createAxios('get', PROX_PATH + '/getExchangeInfoNo')

// 28.管理员/宿管获取某楼栋某寝室学生信息
export const getStuOneBuildDor = ({ dormitory, buildId }) =>
	createAxios('get', PROX_PATH + '/getStuOneBuildDor', { dormitory, buildId })

// 29.管理员获取所有换房申请总数
export const getExchangeAll=()=>createAxios("get",PROX_PATH+"/getExchangeAll")
// 30.宿管获取某楼栋假期申请中的总数
export const getHolInfoCount=()=>createAxios("get",PROX_PATH+"/getHolInfoCount")

